<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML作业9-使用CSS美化横向导航</title>
<style type="text/css">
* {
	padding: 0;
	margin: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	list-style-type: none;
}
body {
}
.box {
	background-color: rgba(255,253,7,1.00);
	width: 700px;
	margin-left: auto;
	margin-right: auto;
	height: 100px;
}
.box .logo {
	float: left;
	line-height: 100px;
	padding-left: 15px;
	padding-right: 15px;
}
.box .nav {
	float: left;
}
.box .nav li {
	float: left;
	margin-right: 14px;
	line-height: 100px;
}
.nav li a {
	text-decoration: none;
	background-color: rgba(255,247,247,1.00);
	padding-top: 2px;
	padding-bottom: 2px;
	padding-left: 5px;
	padding-right: 5px;
	border-width: 1px;
	border-radius: 3px;
	border-style: solid;
}
</style>
</head>

<body>
	<div class="box">
	<h1 class="logo">标题</h1>
		<ul class="nav">
			<li><a href="">栏目名称</a></li>
			<li><a href="">栏目名称</a></li>
			<li><a href="">栏目名称</a></li>
			<li><a href="">栏目名称</a></li>
			<li><a href="">栏目名称</a></li>
		</ul>
	</div>
</body>
</html>
